package com.feng.chat.pojo;

import io.gitee.zerowsh.actable.annotation.AcColumn;
import io.gitee.zerowsh.actable.annotation.AcTable;
import io.gitee.zerowsh.actable.emnus.ColumnTypeEnums;

import java.time.LocalTime;

@AcTable(name = "emoticon", comment = "表情包")
public class Emoticon {
    @AcColumn(name = "id", comment = "表情分组ID", type = ColumnTypeEnums.BIGINT, length = 20, isAutoIncrement = true, isKey = true)
    private Integer id;

    @AcColumn(name = "name", defaultValue = "", comment = "分组名称", type = ColumnTypeEnums.VARCHAR, length = 50, isNull = false)
    private String name;

    @AcColumn(name = "icon", defaultValue = "", comment = "分组图标", type = ColumnTypeEnums.VARCHAR, length = 255, isNull = false)
    private String icon;

    @AcColumn(name = "status", defaultValue = "0", comment = "分组状态[-1:已删除;0:正常;1:已禁用;]", type = ColumnTypeEnums.TINYINT)
    private Integer status;

    @AcColumn(name = "created_at", comment = "创建时间", type = ColumnTypeEnums.DATETIME, isNull = true)
    private LocalTime createdAt;

    @AcColumn(name = "updated_at", comment = "更新时间", type = ColumnTypeEnums.DATETIME, isNull = true)
    private LocalTime updatedAt;
}
